//
//  NetworkRequest.h
//  NetworkRequest
//
//  Created by mac on 16/7/15.
//  Copyright © 2016年 www. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SuccessBlock)(id result);
typedef void(^FailureBlock)(NSError *error);

@interface NetworkRequest : NSObject

+ (void)requestWithURL:(NSString *)url httpMethod:(NSString *)method params:(NSDictionary *)params fileData:(NSDictionary *)fileDic success:(SuccessBlock)sBlock failure:(FailureBlock )fBlock;

@end
